/*
 * @Author: your name
 * @Date: 2021-06-27 13:21:22
 * @LastEditTime: 2021-07-04 21:57:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_shop_mananger\src\main.js
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import axios from 'axios'
import assest from './assets/css/assest.css'

axios.defaults.baseURL='http://timemeetyou.com:8889/api/private/v1/'
//请求拦截器
axios.interceptors.request.use(config=>{
  //请求头
  config.headers.Authorization = window.sessionStorage.getItem('token');
  return config;
})
Vue.prototype.$http=axios;
Vue.prototype.$bus=new Vue();
Vue.config.productionTip = false
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
